package com.shop.web.exception;

import com.shop.web.response.Ret;

public class GCException extends Exception {

    private String code;

    private String msg;

    public GCException() {

    }

    public GCException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public GCException(String code, String msg, Exception e) {
        super(e);
        this.code = code;
        this.msg = msg;
    }

    public GCException(Ret ret) {
        this.code = ret.getCode();
        this.msg = ret.getMsg();
    }

    public GCException(Ret ret, Exception e) {
        super(e);
        this.code = ret.getCode();
        this.msg = ret.getMsg();
    }

    public String getcode() {
        return this.code;
    }

    public void setcode(String code) {
        this.code = code;
    }

    public String getmsg() {
        return this.msg;
    }

    public void setmsg(String msg) {
        this.msg = msg;
    }
}
